package com.joysuch.wwyt.bp.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "作业证验收")
public class BpWorkSafetyAppAuditBean implements Serializable {

    @ApiModelProperty(value = "签批:0;验收:1")
    private Integer flag;

    @ApiModelProperty(value = "作业证状态")
    private Integer state;

    @ApiModelProperty(value = "状态名称")
    private String sateName;

    @ApiModelProperty(value = "作业证id")
    @NotNull(message = "作业证id不能为空")
    private Long certId;

    @ApiModelProperty(value = "作业证类型")
    @NotNull(message = "作业证类型不能为空")
    private String type;

    //作业开始时间
    @ApiModelProperty(value = "作业开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sTime;

    //作业结束时间
    @ApiModelProperty(value = "作业结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date eTime;

    //验收意见
    @ApiModelProperty(value = "验收意见")
    private String checkMessage;

    //危害辨识
    @ApiModelProperty(value = "危害辨识")
    private BpWorkSafetyIdentifyBean identifyBean;
    //措施确认
    @ApiModelProperty(value = "措施确认")
    private List<BpWorkSafetySigenerBean> methodBeans;
    //动火分析
    @ApiModelProperty(value = "动火分析")
    private List<BpWorkSafetyFileAnalyzeBean> fileBeans;
    //受限空间分析
    @ApiModelProperty(value = "受限空间分析")
    private List<BpWorkSafetySpaceAnalyzeBean> spaceBeans;
    //签字确认表
    @ApiModelProperty(value = "签字确认表")
    private List<BpWorkSafetySigenerAddBean> signerBeans;

}
